package com.woniuxy.house.feign;

import com.woniuxy.entity.ResponseResult;
import com.woniuxy.entity.broker.Broker;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("BROKER")
@Component
public interface BrokerService {
    @GetMapping("/broker/getSingleBroker")
    ResponseResult<Broker> getSingleBroker(@RequestParam("id")int id);
}
